﻿package 第二章.t9;

import java.util.ArrayList;
import java.util.List;

public class MyOneList {

	@SuppressWarnings("rawtypes")
	private List list = new ArrayList();

	@SuppressWarnings("unchecked")
	synchronized public void add(String data) {
		list.add(data);
	};

	synchronized public int getSize() {
		return list.size();
	};

}
